package Test;

class PetDog{
    public String name;
    public String color;

    public void barks(){
        System.out.println(name+"汪汪汪");
    }

    public void wag(){
        System.out.println(name+"摇尾巴");
    }
}

public class Test06 {
    public static void main(String[] args) {
        PetDog petDog1 = new PetDog();
        petDog1.name = "花花";
        petDog1.color = "红色";
        petDog1.barks();
        petDog1.wag();

        System.out.println("===========");

        PetDog petDog2 = new PetDog();
        petDog2.name = "阿黄";
        petDog2.color = "黄色";
        petDog2.barks();
        petDog2.wag();
    }
}
